<div class="dux-page-header uk-clearfix">
    <div class="page-title">
        <a class="uk-button uk-button-primary" href="{url('index')}"> 银行列表</a>
    </div>
    <div class="page-action">
        <a class="uk-button uk-button-danger" href="javascript:location.reload();"><i class="fa fa-refresh"></i></a>
    </div>
</div>

<div class="uk-margin-top">
    <div class="uk-card uk-card-default uk-card-small dux-panel">
        <div class="uk-card-header">{$assignName}银行</div>
        <div class="uk-card-body">
            <form class="dux-form uk-form   uk-form-horizontal " data-dux="form-bind" method="post">
                <fieldset>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">银行名称</label>
                        <div class="uk-form-controls">
                            <input type="text" name="name" value="{$info.name}" placeholder="请输入银行完整名称" required>
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">银行标识</label>
                        <div class="uk-form-controls">
                            <input type="text" name="label" value="{$info.label}" placeholder="唯一的银行标识信息" required>
                            <div class="uk-form-help">
                                标准大写银行标识，关联支付宝<a href="https://ab.alipay.com/i/yinhang.htm" target="_blank">合作银行卡</a>接口
                            </div>
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">银行LOGO</label>
                        <div class="uk-form-controls">
                            <div class="uk-input-group">
                                <input class="uk-form-field" name="logo" id="logo" value="{$info.logo}"
                                       placeholder="上传logo图片">
                                <span class="uk-input-group-btn">
                                            <button class="uk-button uk-button-default" type="button" data-dux="form-upload"
                                                    data-target="#logo" data-type="jpg,png,bmp"><i
                                                    class="fa fa-upload"></i></button>
                                        </span>
                            </div>
                            <div class="uk-form-help">
                                建议上传128*128等比例透明PNG图片，不填写读取"__PUBLIC__/member/images/blank/标识.png"图片
                            </div>
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">银行颜色</label>
                        <div class="uk-form-controls">
                            <input type="text" name="color" value="{$info.color}" placeholder="请输入HEX颜色代码" required>
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">状态</label>
                        <div class="uk-form-controls">
                            <?php if(!isset($info['status'])) $info[ 'status']=1 ; ?>
                            <div>
                                <select name="status" data-dux="form-select" required>
                                    <option value="1" <!--if{$info['status']}--> selected <!--{/id}--> >正常</option>
                                    <option value="0" <!--if{!$info['status']}--> selected <!--{/id}--> >禁用</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <div class="uk-form-controls">
                            <input type="hidden" name="bank_id" value="{$info.bank_id}">
                            <button class="uk-button uk-button-primary" type="submit">保存</button>
                        </div>
                    </div>

                </fieldset>
            </form>
        </div>
    </div>
</div>